﻿<extend name="Public:base"/>

<block name="main">
    <div class="sub_r_bot">
        <div class="sub_bot_one">
            <span class="sub_bot_bt">走勢圖</span>

            <span class="r">
                <a href="{:U('Home/Index/index')}" class="g_button btn_orange" target="_top">返回開獎列表&gt;&gt;</a>
            </span>
        </div>
    </div>

    <table class="sub_table" border="0" cellpadding="0" cellspacing="0" width="100%">
        <thead>
        <tr>
            <th colspan="2" style="font-size:30px">開獎</th>
            <th colspan="12" style="font-size:30px">走勢分佈</th>
        </tr>
        <tr id="th_header">
            <th class="" width="95" style="font-size:30px">期數
            </th>
            <th class="" width="180" style="font-size:30px">開獎號碼
            </th>
            <th class="" width="30" style="font-size:30px">鼠</th>
            <th class="" width="30" style="font-size:30px">牛</th>
            <th class="" width="30" style="font-size:30px">虎</th>
            <th class="" width="30" style="font-size:30px">兔</th>
            <th class="" width="30" style="font-size:30px">龙</th>
            <th class="" width="30" style="font-size:30px">蛇</th>
            <th class="" width="30" style="font-size:30px">马</th>
            <th class="" width="30" style="font-size:30px">羊</th>
            <th class="" width="30" style="font-size:30px">猴</th>
            <th class="" width="30" style="font-size:30px">鸡</th>
            <th class="" width="30" style="font-size:30px">狗</th>
            <th class="" width="30" style="font-size:30px">猪</th>
        </tr>
        </thead>
        <tbody id="reslist" linnos="0,1,2,5">
            <foreach name="lists" item="vo" >
                <tr class="trendresult1" style="height:50px; text-align: center;">
                    <td>{$vo.qishu}</td>
                    <td>
                        <span><img src='__TMPL__Public/assets/images/dice_{$vo.num_1}.png' width="50px;" height="50px;"></span>
                        <span><img src='__TMPL__Public/assets/images/dice_{$vo.num_2}.png' width="50px;" height="50px;"></span>
                        <span><img src='__TMPL__Public/assets/images/dice_{$vo.num_3}.png' width="50px;" height="50px;"></span>
                        <span><img src='__TMPL__Public/assets/images/dice_{$vo.num_4}.png' width="50px;" height="50px;"></span>
                        <span><img src='__TMPL__Public/assets/images/dice_{$vo.num_5}.png' width="50px;" height="50px;"></span>
                        <span><img src='__TMPL__Public/assets/images/dice_{$vo.num_6}.png' width="50px;" height="50px;"></span>
                    </td>
                    <php>$data = total_appear_num($vo['num_1'],$vo['num_2'],$vo['num_3'],$vo['num_4'],$vo['num_5'],$vo['num_6'])</php>
                    <for start="1" end="13">
                        <td>
                            <if condition="$data[$i] eq 0">
                                {$i}
                                <elseif condition="$data[$i] eq 1" />
                                <div class='xiaoresult'><img src='__TMPL__Public/assets/images/dice_{$i}.png' width='50px;' height='50px;'></div>
                                <elseif condition="$data[$i] gt 1" />
                                <div class='xiaoresult'><img src='__TMPL__Public/assets/images/dice_{$i}.png' width='50px;' height='50px;'></div>
                                <div style='font-size:12px;float:right;margin-top:-50px;font-weight:600;color:red'>{$data[$i]}</div>
                            </if>
                        </td>
                    </for>

                </tr>
            </foreach>

        </tbody>
    </table>
</block>